import request from '@/utils/request'



export function getUser(params = {}) {
  return request({
    url: '/user',
    method: 'get',
    params
  });
}


export function login(data = {}) {
  return request({ // promise
    url: '/login',
    method: 'post',
    data
  });
}



export function getInfo(username) {
  return request({ // promise
    url: '/getInfo',
    method: 'get',
    params:{
      username
    }
  });
}



export function getList() {
  return request({
    url: '/getList',
    method: 'get',
  });
}

